
<?php
// 用关联数组存储学生信息，键为学生属性，值为对应属性的值
$student = array(
    '学号' => '243110342',
    '姓名' => '郅远',
    '性别' => '男',
    '电话' => '17839968259'
);

echo "学生信息如下：\n";
foreach ($student as $key => $value) {
    echo $key . "：" . $value . "\n";
}
?>

